<%@page import="com.neusoft.weixin.utils.MessageUtil"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<% String appPath = request.getContextPath();%>    
<!DOCTYPE html>
<html>
  <head>
    <title>预约挂号</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
	
	<style type="text/css">
		body{font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","WenQuanYi Micro Hei",sans-serif;}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, .lead {font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;}
	
	</style>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
<div class="container">
<div class="row">
<h4 align="center">预约登记</h4>
</div>
<form class="form-horizontal" id="step1form" action="${ctx}/web/step2.jsp" method="post">
  <div class="form-group">
    <label for="inputEmail3" class="col-xs-5 col-sm-2 control-label text-right">可预约科室：</label>
    <div class="col-xs-7 col-sm-10">
      <select class="form-control">
		  <option>科室一</option>
		  <option>科室二</option>
		</select>
    </div>
  </div>
  <div class="form-group" id="doctors">
    <label for="inputPassword3" class="col-xs-5 col-sm-2 control-label text-right">可预约医师：</label>
    <div class="col-xs-7 col-sm-10">
      <div class="radio">
	  <label>
	    <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
	           医生一  排队等待人数：20人   服务费：￥10元
	  </label>
	  </div>
	  <div class="radio">
	  <label>
	    <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
	   	 医生二  排队等待人数：20人   服务费：￥10元
	  </label>
	  </div>
	  <div class="radio">
	  <label>
	    <input type="radio" name="optionsRadios" id="optionsRadios3" value="option3">
	   	 医生三  排队等待人数：20人   服务费：￥10元
	  </label>
	  </div>
	</div>
  </div>
  <div class="row">
  
  <div class="text-center col-xs-12 col-sm-12"><button id="next" type="button" class="btn btn-primary col-xs-12 col-sm-12">确认无误，继续</button></div>
  <!-- Optional: clear the XS cols if their content doesn't match in height -->
  <div class="clearfix visible-xs"></div>
</div>
</form>	
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){
	//$("#doctors").hide();
	$("#next").click(nextStep);
	
	$("#depts").change(function(){
		
		if ( $("#depts").val() == "0" ){
			$("#doctors").hide();
		}else{
			$("#doctors").show();
		}
		
	});
});


function nextStep(){
	$("#step1form").submit();
}

</script>
  </body>
</html>